[#ftl]
[#assign entityName="PageMenus"]
[#assign pathRoot="/admin/cms/basic/menus/menus_"]

[@jsec.authPage perms=["${entityName}search"]/]
[#assign prms=jweb.params("prm")]
[@frame.root]
  <!-- Default panel contents -->
  [@frame.title]网站菜单[/@]
  [@frame.searchForm id="search" prms=prms.ogin]
       [@frame.input id="prm.name" label="名称"/]
       [@frame.select datas=jdao.enums("com.ustudy.entity.cms.PageMenus$PageMenuType") value="id" title="label" id="prm.pageMenuType" label="类型"/]
    [/@]
    [@jsec.authBlock perms=["${entityName}ctrl"]]
  [@frame.toolsBar]
    [@frame.toolsBtn class="btn-success" href="${base}${pathRoot}form.shtml" icon="fa-plus"/]
  [/@]
  [/@]
    
    [#assign datas=frame.createHql(entityName)()]
    
  [@table.table id="block" datas=datas prms=prms.url]
    [@table.box path="id"/]
    [@table.text path="name" name="名称"/]
    [@table.text path="pagesTemplate.alias" name="页面配置"/]
    [@table.text path="parent.name" name="父菜单"/]
    [@table.text path="sortInfo" name="排序"/]
    [@table.enum path="pageMenuType" name="类型"/]
    [@table.dialog path="body" name="配置"/]
    [@jsec.authBlock perms=["blockmanager"]]
    [@table.body name="操作";item]
        [@html.btngroup]
            [@html.href href="${base}${pathRoot}form.shtml?id=${item.id}" icon="fa-edit"/]
            [@html.href href="${base}${pathRoot}remove.shtml?id=${item.id}" class="" icon="fa-remove" confirm="是否删除菜单？"/]
        [/@]
    [/@]
    [/@]
    [/@]
    [@frame.pagesBar data=datas prms=jweb.params("prm").url+jweb.sort().url!/]
[/@]